import request from '@/utils/request'
export default {
  getCourseList(page,limit,courseVo) {
    return request({
      url: `/eduservice/coursefront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: courseVo
    })
  },
  getAllCourseList() {
    return request({
      url: `/eduservice/subject/getAllSubject`,
      method: 'get'
    })
  },
  getCourseInfo(courseId){
    return request({
      url: `/eduservice/coursefront/getFrontCourseInfo/${courseId}`,
      method: 'get'
    })
  },
  getBuyCourseInfo(memberId){
    return request({
      url: `/eduservice/coursefront/getBuyCourse/${memberId}`,
      method: 'get'
    })
  },
  reportById(report){
    return request({
      url: `/eduservice/coursefront/report`,
      method: 'post',
      data: report
    })
  }
}